import config from "@/config"
import http from "@/scripts/request"

const controller = "/plugin";
/**
 * 插件服务
 */
export default {
  /**
 * 获取某个类型的插件集合
 * @param params
 * @returns {Promise<T>}
 */
  getPlugins: function(params){
    return http.get(`${config.API_URL}${controller}/getPlugins`, { params });
  }
}
